package com.team.runsfast.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@TableName("t_comment")
public class Comment {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long uid;
    private Long mid;
    private String info;
    private Long pid;
    private Date ctime;

    public Comment(Long uid, Long mid, String info, Long pid) {
        this.uid = uid;
        this.mid = mid;
        this.info = info;
        this.pid = pid;
        this.ctime=new Date();
    }
}
